package com.example.chapter07_client.Util;

import android.content.ContentValues;

//属性拷贝
public abstract class copyProperties {
    private static final String USER_NAME = "name";
    private static final String USER_AGE = "age";
    private static final String USER_HEIGHT = "height";
    private static final String USER_WEIGHT = "weight";
    private static final String USER_MARRIED = "married";

    public static ContentValues copy(String name,String age,String height,String weight,int married ){
        ContentValues values = new ContentValues();
        values.put(USER_NAME,name);
        values.put(USER_AGE,Integer.parseInt(age));
        values.put(USER_HEIGHT,Float.parseFloat(height));
        values.put(USER_WEIGHT,Float.parseFloat(weight));
        values.put(USER_MARRIED,married);
        return values;
    }
}
